package com.backstage.advice;

/**
 * Created by yanhao on 2017/7/18.
 */
public enum Code {

    SUCCESS(0, "成功"),

    PARAM_MISSING(10001, "缺少参数"),

    ACCESS_TOKEN_INVALID(10002, "access_token 失效"),

    UNKNOW_ACCOUNT(10003, "没有找到帐户"),

    UNAUTHORIZED(10004, "未授权"),

    MOBILE_VERIFICATION_FAILED(10005, "验证失败"),

    VERIFY_CODE_ERROR(10006, "验证错误"),

    CREADE_FAILURE(10007, "创建失败"),

    ;

    private int code;
    private String message;


    Code(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
